﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:MyStudioServerPlayer" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:olg="clr-namespace:OpenLightGroup.Visualizers;assembly=OpenLightGroup.Visualizers"
    mc:Ignorable="d" 
	xmlns:saluse="clr-namespace:LiteVisualizerPlayer.Controls" 
	x:Class="MyStudioServerPlayer.MainPage"
    d:DesignWidth="300" d:DesignHeight="300" Height="350">
    <StackPanel x:Name="LayoutRoot"
                Background="#ff000000">
        <Border Padding="5,0"
                Margin="0,15,0,10">
            <StackPanel Orientation="Horizontal"
                        Margin="-4,0,0,0">
                <MediaElement x:Name="mediaElement"
                              AutoPlay="False"
                              CurrentStateChanged="mediaElement_CurrentStateChanged"
                              MediaOpened="mediaElement_MediaOpened"
                              MediaEnded="mediaElement_MediaEnded"
                              MediaFailed="mediaElement_MediaFailed" />
                <StackPanel Orientation="Vertical"
                            d:LayoutOverrides="Height" />
                <Button x:Name="toggleButton"
                        HorizontalAlignment="Left"
                        Content="4"
                        Margin="0"
                        Click="toggleButton_Click"
                        FontFamily="Webdings"
                        Width="25"
                        FontSize="14"
                        Height="25" />
                <Button x:Name="stopButton"
                        HorizontalAlignment="Left"
                        Content="&lt;"
                        Margin="1,0,0,0"
                        Click="stopButton_Click"
                        FontFamily="Webdings"
                        Width="25"
                        FontSize="14"
                        Height="25" />
                <TextBlock x:Name="currentTimeTextBlock"
                           Margin="5,-10,0,0"
                           TextWrapping="Wrap"
                           Width="50"
                           Foreground="White"
                           TextAlignment="Right"
                           Padding="0,15,0,0" />
                <TextBlock x:Name="durationTextBlock"
                           Margin="5,-10,0,0"
                           Width="50"
                           Foreground="White"
                           TextWrapping="Wrap"
                           Padding="0,15,0,0" />
                <saluse:SaluseSlider HorizontalAlignment="Left"
                     x:Name="positionSlider"
                     Margin="5,0,0,0"
                     Width="127"
                     Value="0"
                     Maximum="0"
                     Style="{StaticResource SaluseSliderStyle}"
                     ProgressPercentage="0.1"
                     Foreground="Red"
                     SmallChange="0"
                     LargeChange="0"
                     VerticalAlignment="Center"
                     ThumbBrush="{StaticResource AlternateSliderThumbBrush}"
                     BorderBrush="{StaticResource AlternateSliderBorderBrush}"
                     FocusBrush="{StaticResource SliderFocusBrush}"
                     SeekingStart="positionSlider_SeekingStart"
                     SeekingEnd="positionSlider_SeekingEnd"
                     Changed="positionSlider_Changed" />
            </StackPanel>
        </Border>
        <Border x:Name="VisualizerPanel"
                BorderThickness="0"
                Margin="0,0,2,0"
                Padding="0" Height="300"/>
        <olg:Orchestrator x:Name="VisualizerOrchestrator" />
    </StackPanel>
</UserControl>
